	<div id="wrapper">
		<div id="loginerror" style="font-size:12px">
		
		</div>
		
			<div class="logo">
				<a href="index.php"><img src="images/logo.png" alt="" /></a>
			</div>
			
		<div id="header">
			<div id="tabs">
				<div class="tab-home"><a href="index.php"><img src="images/home.png" alt="" /></a>
					<br />HOME
				</div>
				<div class="tab-recipe"><a href="daftarkonten.php"><img src="images/recipe-icon.png" alt="" /></a>
					<br />CONTENTS
				</div>
				<div class="tab-place"><img src="images/place-icon.png" alt="" />
					<br />PLACE
				</div>
				<div class="tab-tips"><a href="post.php"><img src="images/tips-icon.png" alt="" /></a>
					<br />POST
				</div>
				<div class="tab-profile"><a href="profil.php"><img src="images/profile-icon2.png" alt="" /></a>
					<br />PROFILE
				</div>
			</div>
						
			<div id="login" style="font-size:12px">
				<?php
					if(isLogin()) {
						echo "<a href=\"profil.php?id=".getLoginUserid()."\"><img onload=\"writeToDoc(\"src=\"$_SESSION[avatar_path]\" name=\"join\"\")\" ></a>";
					} else {
						echo "<form name=\"loginform\" action=\"\">
							<div id=\"login2\">
								<div id=\"UserName_home\">
									User Name&nbsp;&nbsp;
								</div>
								<div>
									<input type=\"text\" name=\"text_UserName_home\" 
									id=\"text_UserName_home\"
									size=\"15\" value=\"\" />
								</div>
								<div id=\"Password_home\">
									Password&nbsp;&nbsp;
								</div>
								<div >
									<input type=\"password\" 
									name=\"text_Password_home\" id=\"text_Password_home\" size=\"15\"/>
								</div>
								<div>
									<div id=\"sign_up\">
										<a href=\"registrasi.php\">Sign up now!</a>
									</div>
									<div id=\"sign_in\">
										<input type=\"button\" name=\"btn_signin\" value=\"Sign In\" onClick=\"tryLogin();\";/>
									</div>
									
								</div>
								</div>
							</form>";
					}
				?>
			</div>
			
			
			
			
			<div class="title">
			
				<div class="searchbox">
					<form name="searchform" action="search.php" method="get">
					<div id="searchinput">
						<div class="searchtextbox" id="searchtextbox">
							<input type="text" name="search" size="20" value="<?php if (isset($search)) echo $search;?>" />
						</div>
						<div class="">
							<select name="select_filter">
								<option <?php 
									if (isset($select_filter)) {if ($select_filter=="Content") echo "selected='selected'"; } else echo "selected='selected'";?>>Content</option>
								<option <?php if (isset($select_filter) && $select_filter=="Username") echo "selected='selected'";?>>Username</option>
								<option <?php if (isset($select_filter) && $select_filter=="All") echo "selected='selected'";?>>All</option>
							</select>
						</div>
					</div>
					
					<input type="submit" value="Search" />
				</form>
				</div>
				<div id="join">
					<?php
						if (isLogin()) {
							echo "Welcome, <a href=\"profil.php?id=".getLoginUserid()."\">".$_SESSION['username']."</a>";
							echo "<br /> <a href=\"php/logout.php\">logout</a>";
						} else {
							echo "It's Free!<a href=\"registrasi.php\"><img onload=\"writeToDoc(\"src=\"images/join.png\" name=\"join\"\")\"></a>";
						}
					?>
				</div>
			</div>
			
			<div class="clear"></div>
		</div>